'use strict';

module.exports = app => {
  const { router, controller } = app;
  const handleUrl = app.middleware.handleUrl();
  // 首页
  router.get('/cms', handleUrl, controller.home.index);
  router.redirect('/', '/cms', 301);
  // 登录
  router.get('/cms/login', controller.login.index);
  // 网上营业厅
  require('./router/onlineCenter')(app);
  // 关于红塔
  require('./router/about')(app);
  // 投资者教育
  require('./router/education')(app);
  // 财富管理
  require('./router/wealth')(app);
  require('./router/research')(app);
  require('./router/party')(app);
};
